﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using ePlanet.ResourceRequest.Business;
using ePlanet.ResourceRequest.DataAccess;
using ePlanet.ResourceRequest.Models;
using ePlanet.ResourceRequest.Services;

namespace Web.Views.TempUserManage
{
    /// <summary>
    /// TempUserServices 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。
    // [System.Web.Script.Services.ScriptService]
    public class TempUserServices : System.Web.Services.WebService
    {
        /// <summary>
        /// 检测是否存在次用户名
        /// </summary>
        /// <param name="loginName"></param>
        /// <returns></returns>
        [WebMethod]
        public int CheckLoginName(string loginName)
        {
            BUSTempUser obus = new BUSTempUser();
            if (obus.CheckUserLoginName(loginName))
            {
                return 1;
            }
            else
            {
                return 0;
            }
        }
    }
}
